package com.wwj.study.singleton.lazy;

/**
 * Created by lenovo on 2018/11/15.
 */
public class LazyFour {

    private static LazyFour lazyTwo=null;

    public static LazyFour getInstance(){
        if(lazyTwo==null){
            synchronized (lazyTwo){
                if(lazyTwo == null){
                    lazyTwo=new LazyFour();
                }
            }
        }
        return lazyTwo;
    }
}
